// function ab(i) {
//   return new Promise((resolve, reject) => {
//     setTimeout(() => {
//       resolve(i)
//     }, 1000)
//   })
// }

// const { resolve, reject } = require('core-js/fn/promise')

// (async function() {
//   for (let i = 0; i < 5; i++) {
//     const a = await ab(i)
//     console.log(a)
//   }
// })()

const a = new Promise(resolve => resolve(1))
const b = new Promise(resolve => resolve(2))
const c = new Promise(resolve => resolve(3))
async function ab() {
  // console.log(await a)
  // console.log(await b)
  // console.log(await c)
  console.log(Promise.all([a, b, c]))
}
ab()
